package entity;

import java.util.Date;

//对应数据库的user_addr表
public class User_Address {
	private Integer user_addr_id;//自增主键ID
	private Integer userId;//user_login表的自增ID
	private String consignee;//收货人
	private String phone;//电话
	private String zip_code;//邮编
	private String sex;
 	private Integer province;//地区表中省份的ID
	private Integer city;//地区表中城市的ID
	private Integer district;//地区表中的区ID
	private String address;//具体的地址门牌号
	private String remark;//备注
	private Integer is_default;//是否默认
	private Date modified_time;//最后修改时间
	public Integer getUser_addr_id() {
		return user_addr_id;
	}
	public void setUser_addr_id(Integer user_addr_id) {
		this.user_addr_id = user_addr_id;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public String getConsignee() {
		return consignee;
	}
	public void setConsignee(String consignee) {
		this.consignee = consignee;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getZip_code() {
		return zip_code;
	}
	public void setZip_code(String zip_code) {
		this.zip_code = zip_code;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public Integer getProvince() {
		return province;
	}
	public void setProvince(Integer province) {
		this.province = province;
	}
	public Integer getCity() {
		return city;
	}
	public void setCity(Integer city) {
		this.city = city;
	}
	public Integer getDistrict() {
		return district;
	}
	public void setDistrict(Integer district) {
		this.district = district;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Integer getIs_default() {
		return is_default;
	}
	public void setIs_default(Integer is_default) {
		this.is_default = is_default;
	}
	public Date getModified_time() {
		return modified_time;
	}
	public void setModified_time(Date modified_time) {
		this.modified_time = modified_time;
	}
	public User_Address() {
		super();
		// TODO Auto-generated constructor stub
	}
	public User_Address(Integer userId, String consignee, String phone, String zip_code, String sex, Integer province,
			Integer city, Integer district, String address, String remark, Integer is_default, Date modified_time) {
		super();
		this.userId = userId;
		this.consignee = consignee;
		this.phone = phone;
		this.zip_code = zip_code;
		this.sex = sex;
		this.province = province;
		this.city = city;
		this.district = district;
		this.address = address;
		this.remark = remark;
		this.is_default = is_default;
		this.modified_time = modified_time;
	}
	@Override
	public String toString() {
		return "User_Address [user_addr_id=" + user_addr_id + ", userId=" + userId + ", consignee=" + consignee
				+ ", phone=" + phone + ", zip_code=" + zip_code + ", sex=" + sex + ", province=" + province + ", city="
				+ city + ", district=" + district + ", address=" + address + ", remark=" + remark + ", is_default="
				+ is_default + ", modified_time=" + modified_time + "]";
	}

	
	
}
